<?php
include 'cont.php';

		$name = $_POST['name'];
        $cat = $_POST['cat'];
		$loc = $_POST['loc'];
		$place = $_POST['place'];
		$d_event = $_POST['d_event'];
		
		
        mysql_query("INSERT INTO acara (eventname, category, eventloc, eventplace, date) VALUES ('$name', '$cat', '$loc', '$place', '$d_event')");
        mysql_close($connection);
        echo "SUCCESS";
?>